import { GroupStructure } from "./structure";

export class StructureCluster extends GroupStructure{
    constructor(spawnRoom = undefined){
        super(spawnRoom);
        this.structureGroups = [];
    }

    isDone(){
        for(let group of this.structureGroups){
            if(!group.isDone()){
                return false;
            }
        }
        return true;
    }

    serialize(){
        return {
            super: super.serialize(),
        }
    }
    deserialize(obj){
        super.deserialize(obj.super);
        return this;
    }
}